<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>mvc</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!-- Loading Bootstrap -->
<link href="<%=path%>/css/vendor/bootstrap.min.css" rel="stylesheet">

<!-- Loading Flat UI -->
<link href="<%=path%>/css/flat-ui.min.css" rel="stylesheet">

<link rel="shortcut icon" href="<%=path%>/img/favicon.ico">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
      <script src="<%=path%>/js/vendor/html5shiv.js"></script>
      <script src="<%=path%>/js/vendor/respond.min.js"></script>
    <![endif]-->
</head>
<body>
	<table width="60%" align="center">

		<tr>
			<th>id</th>
			<th>name</th>
			<th>sex</th>
			<th>age</th>
			<th>操作</th>

		</tr>

		<c:forEach var="student" items="${students}">

			<tr>

				<td>${student.id }</td>
				<td>${student.name }</td>
				<td>${student.sex }</td>
				<td>${student.age }</td>
				<td><a href="<%=path %>/user/find.action?id=${student.id }">查看json格式</a>
				</td>
			</tr>
		</c:forEach>


	</table>
	<hr>
	<div class="container">
		<form class="form-inline" action="<%=path %>/user/add.action" method="post">
			<div class="form-group">
				<label for="name">name</label> <input type="text" class="form-control" name="name" id="name" placeholder="name">
			</div>
			<div class="form-group">
				<label for="sex">sex</label> <input type="text" class="form-control" name="sex" id="sex" placeholder="sex">
			</div>
			<div class="form-group">
				<label for="age">age</label> <input type="number" class="form-control" name="age" id="age" placeholder="age">
			</div>

			<button type="submit" class="btn btn-default">提交</button>
		</form>
	</div>

	<!-- jQuery (necessary for Flat UI's JavaScript plugins) -->
	<script src="<%=path%>/js/vendor/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script src="<%=path%>/js/vendor/video.js"></script>
	<script src="<%=path%>/js/flat-ui.min.js"></script>

</body>
</html>
















